home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 March / PCWorld_2002-03_cd.bin / Software / TemaCD / xteq / setup.exe / {app} / plugins / XQ Win2K Crash On Demand.xpl < prev    next >
Text File  |  2001-05-13  |  2KB  |  55 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\Crash Control"
  5. "NAME"="Windows 2K/XP Crash On Demand"
  6. "WARNING"="1"
  7. "VERSION"="1.15"
  8. "OSVERSION"="0001011"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="Allow manually initiated crash"
  11. "DESCRIPTION 1"="Windows includes a "feature" (?) that lets you blue-screen (crash) the OS simply by holding the right CTRL key and pressing the "Scroll Lock" key twice."
  12. "DESCRIPTION 2"="After activating this option, reboot your system. Then hold the right CTRL key and press the "Scroll Lock" key twice."
  13. "DESCRIPTION 3"="Windows will react with a nice MANUALLY_INITIATED_CRASH (0xE2) blue-screen..."
  14. "DESCRIPTION 4"="Enjoy!"
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www.xteq.com"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"="see http://support.microsoft.com/support/kb/articles/Q244/1/39.asp"
  19.  
  20.  
  21.  
  22. sV1="HKLM\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters\CrashOnCtrlScroll" 'DW
  23.  
  24.  
  25. Sub Plugin_Initialize 
  26.  i=GetWinVer
  27.  if i=4 or i=6 then
  28.     s=RegReadValue(sV1)
  29.     if IsEmpty(s)=false then 
  30.        if s=1 then SetUIElement 1,true 
  31.     end if
  32.  else
  33.     Call Disable()
  34.  end if
  35. End Sub
  36.  
  37. Sub Plugin_CheckData(ElementIndex)
  38. End Sub
  39.  
  40. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  41.  b=GetUIElement(1)
  42.  if b=true then
  43.     Call RegWriteValue(sV1,"1",2)
  44.  else
  45.     s=RegReadValue(sV1)
  46.     if IsEmpty(s)=false then RegDeleteValue(sV1)
  47.  end if
  48.  
  49.  
  50.  Call Restart()
  51. End Sub
  52.  
  53. Sub Plugin_Terminate 
  54. End Sub
  55.